/**
 * 
 */
package com.org.cbs.code;

import java.beans.PropertyDescriptor;
import java.io.ObjectOutputStream.PutField;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

import org.springframework.beans.BeansException;
import org.springframework.beans.PropertyValues;
import org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor;

/**
 * @className DemoBean
 * @author zhengguohui
 * @description
 * @date 2018年8月2日
 */
public class MyMap {
	public final static Map<String, String> mapqwqw = new HashMap<String, String>() {
		private static final long serialVersionUID = 1L;
		{
			put("008", "01");
			put("009", "02");
		}
	};
	public static void main(String[] args) {
		Map<String, Object> map = new HashMap<>();
		map.put("code", "000001");
		map.put("name", "username");
		for (String ss : map.keySet()) {
			System.out.println(ss);
		}
		for (Entry<String, Object> entry : map.entrySet()) {
			System.out.println(entry.getKey() + entry.getValue());
		}
		Iterator<Object> itr = map.values().iterator();
		while (itr.hasNext()) {
			System.out.println("Iterator===" + itr.next().toString());
		}
		Object[] str = map.values().toArray();
		System.out.println(map.isEmpty());
		System.out.println(str);
	}

}
